﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Daneas.Utility.Universals
{
    public class Result
    {
        public Result()
        {
            this.isSuccess = false;
            this.Msg = "";
        }
        public bool isSuccess { get; set; }
        public string Msg { get; set; }
    }


    public class TResult<T> where T : new()
    {
        public TResult()
        {
            this.isSuccess = false;
            this.Msg = "";
            this.Data = default(T);
        }

        public T Data { get; set; }

        public bool isSuccess { get; set; }

        public string Msg { get; set; }
    }
}
